package com.atguigu.decorator;

/**
 * @program: design-patterns
 * @author: yangshen
 * @description:
 * @create: 2022-02-17 17:11
 **/
public class Soy extends Decorator{
    /**
     * 组合 被装饰者抽象类
     *
     * @param drink 被装饰者
     */
    public Soy(Drink drink) {
        super(drink);
        setDes("豆浆");
        setPrice(1.5f);
    }
}
